/* Andreas Baum
 * IMClientApplet.java
 * Handles the display of the applet for client-server
 * interaction
 */

package ChatClientApplet;

import java.awt.Color;
import java.awt.Container;
import java.awt.FlowLayout;
import javax.swing.JApplet;

public class ChatClientApplet extends JApplet {

	public static int WIDTH = 800;
	public static int HEIGHT = 700;
	public static String HOST = "host-computer.local";
	public static int SERVER_PORT = 4444;
	/*
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Container content;

	public ChatClientApplet() {
	}

	public void init() {
		content = getContentPane();
		content.setSize(WIDTH, HEIGHT);
		content.setBackground(Color.white);
		content.setLayout(new FlowLayout());
		
		ChatPanel chatPanel = new ChatPanel();
		content.add(chatPanel);
		setSize(WIDTH,HEIGHT);
	}
}